package com.mars.ticket.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;

/**
*  实体类
* @author: wq
* @date: 2021-03-15
*/
@Data
@TableName("chat_record")
public class ChatRecord implements Serializable {


    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
    * 发送方
    */
    @TableField("from_user_id")
    private Integer fromUserId;

    /**
    * 接收方
    */
    @TableField("to_user_id")
    private Integer toUserId;

    /**
    * 0  未读  1 已读
    */
    @TableField("status")
    private Integer status;

    /**
    * 发送内容
    */
    @TableField("content")
    private String content;

    /**
    * 创建时间
    */
    @TableField("create_time")
    private Date createTime;

}
